# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pikepdf
_pyname=pikepdf
pkgver=1.17.3
pkgrel=0
pkgdesc="Python library for reading and writing PDF"
url=https://github.com/pikepdf/pikepdf
arch="all"
license="MPL-2.0"
depends="py3-lxml py3-pillow py3-pybind11>=2.4.3 py3-setuptools python3"
makedepends="py3-pybind11-dev python3-dev qpdf-dev"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver
options="!check" # tests fail to import pikepdf

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="38be1238d8c7d4ecdd8da350ec4efa10dc3265abd30c7e773ae8b95b3cb604c04c6bfa0c877666212f799b0740515ed2e1c13d45caee5f690f5b941be458968f  pikepdf-1.17.3.tar.gz"
